package com.ruicar.afs.cloud.product.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.product.entity.SchemeFinance;
import com.ruicar.afs.cloud.product.mapper.SchemeFinanceMapper;
import com.ruicar.afs.cloud.product.service.SchemeFinanceService;
import org.springframework.stereotype.Service;

/**
 * @author yaorui.zhang
 * @date 2020年5月11日19:29:51
 */
@Service
public class SchemeFinanceServiceImpl extends ServiceImpl<SchemeFinanceMapper, SchemeFinance> implements SchemeFinanceService {

    @Override
    public SchemeFinance getFinancePlanById(String id) {
        return this.baseMapper.selectOne(Wrappers.<SchemeFinance>query().lambda().eq(SchemeFinance::getId, id));
    }
}
